package com.situ.layuimini.controller;


import com.situ.layuimini.service.IUserService;
import com.situ.layuimini.vo.LayuiTableVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author kkkkkk
 * @since 2022-05-30
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private IUserService userService;

    @GetMapping(value = "/list")
    public LayuiTableVO list(Integer page, Integer limit) {
        return userService.selectList(page, limit);
    }

}
